package com.tengju.bff.interfaces.covercharge.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 账户-客户业务自定义任务队列表
 * </p>
 *
 * @author qumengmeng
 * @since 2020-09-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("w_service_self_task_queue")
public class CustTaskQueue implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 命令名
     */
    @TableField("batch_id")
    private String batchId;

    /**
     * 命令名
     */
    @TableField("cmd")
    private String cmd;

    /**
     * 参数；json字串
     */
    @TableField("args")
    private String args;

    /**
     * 重试次数
     */
    @TableField("tries")
    private Integer tries;

    /**
     * 指定运行时间
     */
    @TableField("running_time")
    private LocalDateTime runningTime;

    /**
     * 运行结果
     */
    @TableField("result")
    private String result;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 0未运行，1执行中，2执行成功, 3执行失败
     */
    @TableField("status")
    private Integer status;


}
